package com.zuipin.service.impl;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.BasePayOnlineTool;
import com.zuipin.mapper.BasePayOnlineToolMapper;
import com.zuipin.service.IBasePayOnlineToolService;

@Service
public class BasePayOnlineToolServiceImpl implements IBasePayOnlineToolService {
	@Resource
	private BasePayOnlineToolMapper	basePayOnlineToolMapper;
	
	/**
	 * 通过系统Id和支付类型获取工具信息
	 */
	@Override
	public BasePayOnlineTool findBySysIdAndCode(String payCode, Long sysId) {
		Map<String, Object> param = new HashMap<String, Object>();
		param.put("payCode", payCode);
		param.put("sysId", sysId);
		return basePayOnlineToolMapper.findBySysIdAndCode(param);
	}
}
